From b51bf1e1846689d031e6ba86bca1ae0b590a4e1b Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 17 Nov 2006 20:03:23 +0000 Subject: [PATCH] Fix crash in google reader on multiple files. --- google.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/google.c b/google.c index 6ff6a8f59..3c126ff62 100644 --- a/google.c +++ b/google.c @@ -345,6 +345,20 @@ google_read(void) } } xfree( script ); + script = NULL; + } + + /* + * 'Tis better to leak than crash when we are merging and + * don't see an 'end' in the first file. This feels a bit + * like plastering over a deeper problem... + * + */ + if ( encoded_points ) { + encoded_points = NULL; + } + if ( encoded_levels ) { + encoded_levels = NULL; } } #endif -- 2.30.2